<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>search</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<!--标准mui.css-->
		<link rel="stylesheet" href="../css/mui.min.css">
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="../css/app.css" />
		<link rel="stylesheet" type="text/css" href="../css/icons-extra.css">
		<!--自定义iconfont-->
		<link rel="stylesheet" type="text/css" href="../css/iconfont.css">
		<link rel="stylesheet" type="text/css" href="../css/shopping-cart.css">
		<script src="../js/mui.min.js"></script>
		<script type="text/javascript" src="../js/jquery.min.js" ></script>
		
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">地址</h1>
		</header>
		<ul  id="addressContent" class="new-add-address">
			<li>
				<a>
					<div class="disflex-between">
						<span>收货人:<label>胡彬</label></span>
						<span>18368900682</span>
					</div>
					<div>
						<span>收货地址：江西财经大学麦庐宁庐A栋604</span>
					</div>
				</a>
			</li>
			<li>
				<a>
					<div class="disflex-between">
						<span>收货人:<label>胡章杰</label></span>
						<span>18368900682</span>
					</div>
					<div>
						<span>收货地址：江西财经大学麦庐宁庐A栋501</span>
					</div>
				</a>
			</li>
		</ul>
		<div class="add-ress__button"><a href="new-add-address.html">添加新地址</a></div>
		<script>
			if(localStorage.getItem("$address")!=null){
			
				var address = JSON.parse(localStorage.getItem("$address"));
				$("#addressContent").append(
					"<li>"+
						"<a>"+
							"<div class='disflex-between'>"+
								"<span>收货人:<label>"+address.name+"</label></span>"+
								"<span>"+address.phone+"</span>"+
							"</div>"+
							"<div>"+
								"<span>收货地址："+address.addr+"</span>"+
							"</div>"+
						"</a>"+
					"</li>"
				);
				
			}
		</script>
	</body>
</html>
